<include file="Public:header" />
<strong>{$ad.name} - 显示管理</strong>
<a href="{:U('/Ad/')}">返回</a>
<form action="" method="post" enctype="multipart/form-data">
<table>
	<tr>
		<td>广告图</td>
		<td><img alt="" src="{$imageUrl}" style="max-width: 300px;">
		</td>
	</tr>
	<if condition="$adMarket">
	<tr>
		<td>原显示</td>
		<td>{$adMarket.m_name}  {$floor.f_sain}{$floor.f_name}  {$brand.b_name}</td>
	</tr>
	</if>
	<tr>
		<td>商场</td>
		<td><select name="market" id="market">
			<foreach name="market" item="m">
			<option value="{$m.m_id}">{$m.m_name}</option>
			</foreach>
		</select></td>
	</tr>
	<tr>
		<td>楼层</td>
		<td><select name="floor" id="floor"></select><a
			href="javascript:;" id="clear">Clear</a></td>
	</tr>
	<tr>
		<td>品牌</td>
		<td><select name="brand" id="brand"></select></td>
	</tr>
	<tr>
		<td>等级</td>
		<td>首页<input type="radio" name="level" value="1"> 商场<input
			type="radio" name="level" value="2"> 首页&商场<input type="radio"
			name="level" value="3"> 品牌<input type="radio" name="level"
			value="4"></td>
	</tr>
	<tr>
		<td>URL:</td>
		<td>
			<input type="text" name="url" value="{$adAllot.url}">
		</td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" value=" 提交 " /></td>
	</tr>
</table>
</form>
<include file="Public:footer" />
<script type="text/javascript">
<!--
	var floorUrl = "{:U('Floor/get/mid/')}";
	var brandUrl = "{:U('Fb/get/fid/')}";
	$('#market').adshow();
	$(function() {
		$("#clear").click(function() {
			$("#floor").html("");
			$("#brand").html("");
		});
	});
//-->
</script>